// 定义协议数据接口
export interface Protocol {
  key: string;
  index: number;
  name: string;
  type: string;
  description?: string;
  frameHeader?: string;
  frameLength?: string;
  checkStart?: string;
  checkEnd?: string;
  checkFrameTail?: string;
  customCheck?: string;
  pollCommands?: string[];
  status: string;
  createTime: string;
  updateTime: string;
}

// 定义协议表单值接口
export interface ProtocolFormValues {
  name: string;
  type: string;
  description: string;
  frameHeader: string;
  frameLength: string;
  checkStart: string;
  checkEnd: string;
  checkFrameTail: string;
  customCheck?: string;
  pollCommands: string[];
}